<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="weaStationDataList" checkbox="false" pagination="true" fitColumns="true" title="气象数据表" actionUrl="weaStationDataController.do?datagrid" idField="id" sortName="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="气象站"  field="stationCode"  query="true"  queryMode="single"  dictionary="wea_station,station_code,station_address"  width="120"></t:dgCol>
   <t:dgCol title="时间"  field="dataTime"  formatter="yyyy-MM-dd hh:mm:ss"  query="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="室内湿度"  field="rhumIn"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="室外湿度"  field="rhumOut"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="室内温度"  field="tempIn"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="室外温度"  field="tempOut"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="太阳辐射"  field="solarRadia"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="紫外辐射"  field="uv"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="地面温度0"  field="ice0Temp"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="结冰积水高温0"  field="ice0Alarm"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="冰厚0"  field="ice0Thick"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="地面温度1"  field="ice1Temp"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="结冰积水高温1"  field="ice1Alarm"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="冰厚1"  field="ice1Thick"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="气压"  field="barometer"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="风速"  field="wind"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="风向"  field="windDirc"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="winAve"  field="winAve"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="降雨率"  field="rainRate"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="日降雨量"  field="rainDay"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="月降雨量"  field="rainMonth"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="年降雨量"  field="rainYear"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="控制台电量"  field="conBattery"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="tempExtra_7"  field="tempExtra"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="soilTemp_4"  field="soilTemp"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="leafTemp_4"  field="leafTemp"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="rhumExtra_7"  field="rhumExtra"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="soilMoinst_4"  field="soilMoinst"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="leafWet_4"  field="leafWet"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgToolBar title="查看" icon="icon-search" url="weaStationDataController.do?goUpdate" funname="detail"  width="800" height="500"></t:dgToolBar>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">
 $(document).ready(function(){
 });
 
   
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'weaStationDataController.do?upload', "weaStationDataList");
}

//导出
function ExportXls() {
	JeecgExcelExport("weaStationDataController.do?exportXls","weaStationDataList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("weaStationDataController.do?exportXlsByT","weaStationDataList");
}

//bootstrap列表图片格式化
function btListImgFormatter(value,row,index){
	return listFileImgFormat(value,"image");
}
//bootstrap列表文件格式化
function btListFileFormatter(value,row,index){
	return listFileImgFormat(value);
}

//列表文件图片 列格式化方法
function listFileImgFormat(value,type){
	var href='';
	if(value==null || value.length==0){
		return href;
	}
	var value1 = "img/server/"+value;
	if("image"==type){
 		href+="<img src='"+value1+"' width=30 height=30  onmouseover='tipImg(this)' onmouseout='moveTipImg()' style='vertical-align:middle'/>";
	}else{
 		if(value.indexOf(".jpg")>-1 || value.indexOf(".gif")>-1 || value.indexOf(".png")>-1){
 			href+="<img src='"+value1+"' onmouseover='tipImg(this)' onmouseout='moveTipImg()' width=30 height=30 style='vertical-align:middle'/>";
 		}else{
 			var value2 = "img/server/"+value+"?down=true";
 			href+="<a href='"+value2+"' class='ace_button' style='text-decoration:none;' target=_blank><u><i class='fa fa-download'></i>点击下载</u></a>";
 		}
	}
	return href;
}

</script>
